<?php defined('LFNC_PACKAGE') or die('forbidden');


/**
* MLT Web Engine
* http://www.molotsoft.ru
*
* @package MLT_WE
* @subpackage Lucky_Funcs
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: sqlite_xopen.lfnc.php 269 2009-06-22 17:04:41Z molotsoft@gmail.com $
* @link $HeadURL: http://lucky-funcs.googlecode.com/svn/trunk/funcs/sqlite/sqlite_xopen.lfnc.php $
*/


function sqlite_xopen($filename, $mode = 0666) {
	$db = sqlite_open($filename, $mode);
	if (is_sqlite_link($db)) register_shutdown_function('sqlite_close', $db);
	return $db;
}


?>